package cn.itcast.user.service;

import cn.itcast.hmall.dto.common.ResultDTO;
import cn.itcast.hmall.pojo.user.Address;
import cn.itcast.hmall.pojo.user.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface UserService extends IService<Address> {

    /**
     * 根据用户id 查询地址列表
     * @return
     */
    List<Address> queryAddressByUid();

    /**
     * 根据id查询地址
     * @param addressId
     * @return
     */
    Address queryAddressById(Long addressId);

    /**
     * 根据id查询用户
     * @param uid
     * @return
     */
    User findUserById(Long uid);

    /**
     * 根据id修改用户
     * @param user
     * @return
     */
    ResultDTO updateUserById(User user);
}
